package com.yunhe.policyfulfillment.authority.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单对象
 * @desc 菜单对象定义
 * @author liuronglei
 */
@ApiModel(value = "PolicyMenu", description = "菜单对象")
@Data
public class PolicyMenu implements Serializable {

    private static final long serialVersionUID = 8254167795653035555L;

    @ApiModelProperty(value = "菜单ID")
    private Long id;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "Url")
    private String url;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "子菜单")
    private List<PolicyMenu> children;

    @ApiModelProperty(value = "菜单等级")
    private Long level;

    @ApiModelProperty(value = "是否可用 0不可用 1可用")
    private String activity = "1";

    @ApiModelProperty(value = "排序序号")
    private String sn;

    @ApiModelProperty(value = "父级菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "新增时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "是否启用")
    private boolean enable;

}
